﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/UserCenter.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SiteResource.Title() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
<script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
    function TabSheet(sender,idx) {
        if ($(sender).attr('class') == 'current1') {
            $('.listbox').each(function () {
                if ($(this).attr('id') == 'sheet' + idx) {
                    $(this).show();
                }
                else {
                    $(this).hide();
                }
            });
            $(sender).attr('class', 'current-red');
            $(sender).parent().siblings('div').children('a').attr('class', 'current1');
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div class="usercenter-main">
        <div class="usercenter-main-topbg">
        </div>
        <div class="usercenter-main-content">
            <div class="usercenter-messagebox">
                Important Messages!
            </div>
            <div class="usercenter-main-content-title">
                <div class="usercenter-main-content-title-left">
                    我的兼职</div>
            </div>
            <div class="usercenter-notes">
                大学生兼职网提供免费兼职发布平台，请发布真实的兼职信息！若发现商家发布虚假兼职，我们将严厉处理！</div>
            <div class="usercenter-tab">
                <div class="usercenter-tab-item">
                    <a href="javascript:;" class="current-red">我的兼职</a></div>
            </div>
            <%var list = ViewData["Data"] as ItemListBox<RequestSheetModel>;
              if (list.Data != null && list.Data.Any())
              {
                  foreach (var item in list.Data)
                  { %>
            <div class="listbox-item">
                    <div class="listbox-item-title">
                        <div class="left">
                            <div>-[<%:item.PostDate.ToLongDateString()%>]<a target="_blank" href="/home/jobdetail_<%:item.RecruitSheet.Id %>"><%:item.RecruitSheet.Caption%></a></div>
                            <div style="margin-left:20px;">所申请职位：<%:item.Position.PositionName%></div>
                            </div>
                        <div class="right">&nbsp;&nbsp;<a target="_blank" href="/Home/jobdetail_<%:item.RecruitSheet.Id %>">查看详情</a></div>
                    </div>
                <div class="listbox-item-bottomline"></div>
                </div>  
            <%}
              }
              else
              {%> 
              <div class="listbox-item">
              您还没有申请过任何兼职。立即<a target="_blank" href="/home/positionlist">查找合适的兼职</a>
              <div class="listbox-item-bottomline"></div>
                </div>  
            <%} %>             
            <div class="listbox-bottom">
                    <div class="listbox-bottom-item">
                        <!--下一页-->
                        <%if (list.NextPage <= 0 || list.NextPage >= list.TotlePage-1)
                          { %>
                          <a class="next1" href="javascript:;"></a>
                        <%}
                          else
                          { %>
                        <a class="next" href="?page=<%:list.NextPage %>"></a>
                        <%} %>
                    </div>
                    <div class="listbox-bottom-item">
                        <!--上一页-->
                        <%if (list.CurrentPage!= 1 && list.PrePage <= 0)
                          { %>
                          <a class="prev1" href="javascript:;"></a>
                        <%}
                          else
                          { %>
                        <a class="prev" href="?page=<%:list.PrePage %>"></a>
                        <%} %>
                    </div>
                    <div class="listbox-bottom-item">
                        <%:list.CurrentPage + 1%>/<%:list.TotlePage%>&nbsp;&nbsp;&nbsp;
                    </div>
                </div>            
            
        </div>
        <div class="usercenter-main-bottombg">
        </div>
    </div>
</asp:Content>
